// Created by Administrator on 2015/11/27.

extends setting
block setting_content
    div(style="width:500px;margin:0 auto;padding-top:30px")
        form.form-horizontal(role="form" name="update_info" method="post" action="/user/private/#{user.nick}/update/info")
            .form-group
                label.col-sm-3.control-label(for="name") 昵称：
                .col-sm-4
                    input#nick.form-control(type="text" name="nick" required value="#{user.nick}")
            .form-group
                label.col-sm-3.control-label(for="gender") 性别：
                .col-sm-3
                    select#gender.form-control(name="gender")
                        if(user.gender)
                            option(value=1 selected) 男
                            option(value=0) 女
                        else
                            option(value=1) 男
                            option(value=0 selected) 女
            .form-group
                label.col-sm-3.control-label(for="telephone") 电话号码：
                .col-sm-5
                    input#telephone.form-control(type="number" name="telephone" value="#{user.telephone?user.telephone:''}")
            .form-group
                label.col-sm-3.control-label(for="qq") QQ：
                .col-sm-5
                    input#qq.form-control(type="text" name="qq" value="#{user.qq?user.qq:''}")
            .form-group
                label.col-sm-3.control-label(for="birthday") 生日：
                .col-sm-5
                    input#birthday.form-control(type="date" name="birthday" placeholder="YYYY-MM-DD" value="#{user.birthday?user.birthday:''}")
            .form-group
                label.col-sm-3.control-label(for="address") 居住地址：
                .col-sm-9
                    input#address.form-control(type="text" name="address" value="#{user.address?user.address:''}")
            .form-group
                .col-sm-offset-3.col-sm-9
                    button.btn.btn-default(type="submit") 提交